// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addWorkPlan POST /api/workPlan/add */
export async function addWorkPlanUsingPost(body, options) {
  return request("/api/workPlan/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteWorkPlan POST /api/workPlan/delete */
export async function deleteWorkPlanUsingPost(body, options) {
  return request("/api/workPlan/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editWorkPlan POST /api/workPlan/edit */
export async function editWorkPlanUsingPost(body, options) {
  return request("/api/workPlan/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getWorkPlanVOById GET /api/workPlan/get/vo */
export async function getWorkPlanVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/workPlan/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listWorkPlanByPage POST /api/workPlan/list/page */
export async function listWorkPlanByPageUsingPost(body, options) {
  return request("/api/workPlan/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listWorkPlanVOByPage POST /api/workPlan/list/page/vo */
export async function listWorkPlanVoByPageUsingPost(body, options) {
  return request("/api/workPlan/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyWorkPlanVOByPage POST /api/workPlan/my/list/page/vo */
export async function listMyWorkPlanVoByPageUsingPost(body, options) {
  return request("/api/workPlan/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateWorkPlan POST /api/workPlan/update */
export async function updateWorkPlanUsingPost(body, options) {
  return request("/api/workPlan/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
